package com.jinken;

import java.lang.instrument.Instrumentation;

public class PreMainTraceAgent
{
    public static void main( String[] args )
    {
       // System.out.println( "Hello World!" );
    }


//    public static void premain(String agentArgs, Instrumentation instrumentation){
//        System.out.println("agentArgs = " + agentArgs);
//        System.out.println("PreMainTraceAgent.premain");
//        instrumentation.addTransformer(new TestTransformer());
//    }
    public static void premain(String agentClass, Instrumentation instrumentation){
        System.out.println("========PreMainTraceAgent.premain=====");
        instrumentation.addTransformer(new TestTransformer());
    }
}


